Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make dpselector api jsonld aware #3310

Conversation

paullatzelsperger
Copy link
Member

@paullatzelsperger paullatzelsperger commented Jul 17, 2023

What this PR changes/adds

This PR converts the DataPlane Selector API to use JSON-LD.

Why it does that

Consistency with other APIs

Further notes

  • the integration test was modified to be a component test
  • converted the RemoteDataPlaneSelectorClientTest to use the RestControllerTestBase
  • the EndToEndTransferParticipant was also updated to use JSON-LD
  • the publicApiUrl is now prefixed with EDC_NAMESPACE

Linked Issue(s)

Closes #3061

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@paullatzelsperger paullatzelsperger marked this pull request as draft July 17, 2023 17:03
@codecov-commenter
Copy link

codecov-commenter commented Jul 17, 2023

Codecov Report

Patch coverage: 87.83% and project coverage change: +0.06 🎉

Comparison is base (f4a7d5c) 71.36% compared to head (7c464a7) 71.43%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3310      +/-   ##
==========================================
+ Coverage   71.36%   71.43%   +0.06%     
==========================================
  Files         806      811       +5     
  Lines       16401    16502     +101     
  Branches      951      956       +5     
==========================================
+ Hits        11705    11788      +83     
- Misses       4301     4315      +14     
- Partials      395      399       +4     
Impacted Files Coverage Δ
...mer/from/JsonObjectFromDataAddressTransformer.java 0.00% <ø> (ø)
...nsformer/DspTransferProcessTransformExtension.java 0.00% <ø> (ø)
...iguration/ManagementApiConfigurationExtension.java 69.56% <0.00%> (-6.63%) ⬇️
...lector/api/v2/schemas/DataPlaneInstanceSchema.java 0.00% <0.00%> (ø)
...elector/api/v2/schemas/SelectionRequestSchema.java 0.00% <0.00%> (ø)
...plane/selector/spi/instance/DataPlaneInstance.java 73.07% <ø> (ø)
...ormer/JsonObjectToSelectionRequestTransformer.java 81.81% <81.81%> (ø)
...selector/client/RemoteDataPlaneSelectorClient.java 69.23% <82.75%> (+7.00%) ⬆️
...rmer/JsonObjectToDataPlaneInstanceTransformer.java 87.50% <87.50%> (ø)
...er/JsonObjectFromDataPlaneInstanceTransformer.java 94.73% <94.73%> (ø)
... and 6 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@paullatzelsperger paullatzelsperger added enhancement New feature or request refactoring Cleaning up code and dependencies api Feature related to the (REST) api labels Jul 18, 2023
@paullatzelsperger paullatzelsperger self-assigned this Jul 18, 2023
Copy link
Member

@ndr-brt ndr-brt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be great to have the new api exposed on something like /v2/dataplanes instead of /instances to align with the other management apis and giving a more meaningful path

@paullatzelsperger paullatzelsperger marked this pull request as ready for review July 18, 2023 14:35
@paullatzelsperger paullatzelsperger force-pushed the feat/make_dpselector_api_jsonld_aware branch from c857e65 to 98f5767 Compare July 18, 2023 14:46
@paullatzelsperger paullatzelsperger removed the request for review from juliapampus July 19, 2023 09:40
@paullatzelsperger paullatzelsperger merged commit 8d49dc3 into eclipse-edc:main Jul 19, 2023
paullatzelsperger added a commit that referenced this pull request Jul 19, 2023
* feat: make DataPlaneSelectorApi JSON-LD aware

* added integration test

* added extension verification

* moved JsonObjectToDataAddressTransformer

* fixed remote DP selector client

* fixed transformer

* fixed integration tests

* fixed tests

* changed path to /v2/dataplanes

* pr remarks

* re-used DataAddressSchema from Management API Config

* moved JsonObjectToDataAddressTransformer to management api config

* renamed selector api package to v2

* fixed tests, build file

* generic transformer is registered in the mgmt api config

* fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Feature related to the (REST) api enhancement New feature or request refactoring Cleaning up code and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make DataplaneSelectorApiController json-ld compliant
4 participants